//
//  AppDelegate.swift
//  Weibo
//
//  Created by rmjycbs  on 16/1/10.
//  Copyright © 2016年 rmjycbs . All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        //在视图实例化之前
        setThememColor()
        
        window = UIWindow(frame: UIScreen.mainScreen().bounds)
        let vc = MainViewController()
        
        window?.backgroundColor = UIColor.whiteColor()
        window?.rootViewController = vc
        
        window?.makeKeyAndVisible()
        return true
    }
    
    
    //设置控制器字体颜色，要尽早，在视图实例化之前
    private func setThememColor(){
        UINavigationBar.appearance().tintColor = UIColor.orangeColor()
        UITabBar.appearance().tintColor = UIColor.orangeColor()
    }


}

